#include<stdio.h>

int main(void)
{
	char day[][4]={"Sun","Mon","Tue","Wed","Thu","Fri","Sat"};
	int n;
	scanf("%d",&n);
	n=(n+1)%7;
	printf("%s\n",day[n]);
	return 0;
}
